<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Threepipe React/TSX Sample</title>
    <!-- Import maps polyfill -->
    <!-- Remove this when import maps will be widely supported -->
    <script async src="https://unpkg.com/es-module-shims@1.6.3/dist/es-module-shims.js"></script>

    <script type="importmap">
        {
            "imports": {
              "threepipe": "./../../dist/index.mjs",
              "vue": "https://unpkg.com/vue@3/dist/vue.esm-browser.prod.js",
              "vue-import": "https://unpkg.com/vue-import/dist/vue-import.esm-browser.js"
            }
        }

    </script>
<!--    "vue-import": "./vue-import/dist/vue-import.esm-browser.prod.js"-->

    <style>
        html, body{
            width: 100%;
            height: 100%;
            margin: 0;
            overflow: hidden;
        }
    </style>

    <script type="module" src="../examples-utils/global-loading.mjs"></script>
    <script type="module" src="../examples-utils/simple-code-preview.mjs"></script>
</head>
<body>
<div id="app">
    <three-viewer></three-viewer>
</div>
<script type="module" data-scripts="./script.vue" id="example-script">
    import { createApp } from 'vue';
    import vueImport from 'vue-import';

    (async ()=>{
        const app = createApp();
        app.component('three-viewer', await vueImport('script.vue', {}))
        app.mount('#app');
    })()
</script>
</body>
</html>
